Skip to content

Class: SafeAction<T> ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public class SafeAction<T>

Properties ​

NameDeclarationDescription
Countpublic int Count { get; }

Methods ​

Add(Action&lt;T&gt;) ​

csharp
public SafeAction<T> Add(Action<T> handler)

Parameters:

NameTypeDescription
handlerSystem.Action&lt;T&gt;&lt;T&gt;

Returns: SafeAction&lt;T&gt;

Contains(Action&lt;T&gt;) ​

csharp
public bool Contains(Action<T> handler)

Parameters:

NameTypeDescription
handlerSystem.Action&lt;T&gt;&lt;T&gt;

Returns: bool

Invoke(T) ​

csharp
public void Invoke(T arg)

Parameters:

NameTypeDescription
argT

Remove(Action&lt;T&gt;) ​

csharp
public SafeAction<T> Remove(Action<T> handler)

Parameters:

NameTypeDescription
handlerSystem.Action&lt;T&gt;&lt;T&gt;

Returns: SafeAction&lt;T&gt;

Maintained by the Shape of Dreams Modding Community